<template>
    <div class="about">
        <table>
            <tr>
                <td>编号</td>
                <td>图书名称</td>
                <td>作者</td>
            </tr>
            <tr >
                <td>{{books.id}}</td>
                <td>{{books.name}}</td>
                <td>{{books.account}}</td>
            </tr>
        </table>
    </div>
</template>


<script>
 
import axios from 'axios'
export default {
    name:"Book",
    data(){
        return {
            books:{}
        }
    },
    created(){
        const _this = this
        axios.get( 'http://localhost:8080/student/getInfo/1').then(function(resp){
            console.log(resp.data)
            _this.books = resp.data         
        })
    }
    
}
</script>
<style scoped>
 
</style>